<?php

    session_start();
    ob_start();
	define('IN_SITE', true);

	$array_uri['model'] 	= isset($_GET['model']) ? addslashes($_GET['model']) : 'login';
	$array_uri['method']		= isset($_GET['func']) ? addslashes($_GET['func']) : '';
	$array_uri['var']			= isset($_GET['var']) ? addslashes($_GET['var']) : '';
	
	require_once 'base.php';
	require_once '../library/config.php';
	require_once '../library/db.class.php';
	require_once '../library/function.php';
    require_once '../library/hash_pass.php';
    
    $config = new Config();
    
    define('TEMPLATE_ADMIN', $config->configweb['template_admin']);

	$application = new Application($array_uri);
	$application->loadController($array_uri['model']);
    ob_end_flush();

?>